package com.xiaobing.common.tree;

import com.xiaobing.common.base.BaseEntity;
import lombok.Data;

import java.util.List;

/**
 * 树结构基础类
 *
 * @program: xiaobingback
 * @author: xulk
 * @create: 2024-07-22 17:47
 */
@Data
public class TreeNode extends BaseEntity {

    // 主键
    private Long id;

    // 父级id
    private Long parentId;

    //子集元素
    private List<TreeNode> children;

}

